package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.domain.StrategyReply;
import cn.wolfcode.trip.base.query.StrategyReplyQueryObject;

import java.util.List;

public interface StrategyReplyMapper {
    int deleteByPrimaryKey(Long id);
    int insert(StrategyReply record);
    StrategyReply selectByPrimaryKey(Long id);
    List<StrategyReply> selectAll();
    int updateByPrimaryKey(StrategyReply record);
    List<StrategyReply> selectByReplayId(Long replyId);
    void saveStrategyReply(StrategyReply strategyReply);
    List<StrategyComment> selectForList(StrategyReplyQueryObject qo);

    /*查询收到的评论*/
    List<StrategyReply> selectForReceiveComments(StrategyReplyQueryObject qo);

    /*设置已读*/
    void setRead(Long id);
    Object selectCountById(Long id);
}